package com.anytrek.cloudorder.service;

import com.anytrek.cloudcommon.entity.OrdersEntity;
import com.anytrek.cloudcommon.utils.ApiResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Alex2
* @description 针对表【t_orders】的数据库操作Service
* @createDate 2025-08-22 10:48:54
*/
public interface OrdersService extends IService<OrdersEntity> {

    ApiResult getOrderByUserId(Integer userId, Integer pageNum, Integer pageSize);

    ApiResult getOrderById(Integer id);

    ApiResult payment();

    ApiResult updateOrderById(Integer id, String name, Integer price, Integer userId);

    ApiResult deleteOrderById(Integer id);

    ApiResult getUserById(Integer id);

    ApiResult insertOrder(Integer commodityId, Integer count, Integer userId);
}
